package com.emellend.api.autocomplete;

import com.emellend.api.R;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
/**
 * 和1类似
 * @author emellend
 *
 */
public class AutoComplete3 extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.autocomplete_3);
		AutoCompleteTextView actv = (AutoCompleteTextView) findViewById(R.id.edit);
		ArrayAdapter<String> adapter=
			new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line,AutoComplete1.COUNTRIES);
		actv.setAdapter(adapter);
		actv=(AutoCompleteTextView) findViewById(R.id.edit2);
		actv.setAdapter(adapter);
	}
}
